package pl.asoft.nbp.exception;

/**
 * Global Exception for rethrowing System errors that don't depends on us, such as IOException, MalformedUrlException
 * Created by rbiedrawa on 2014-12-04.
 */
public class SystemException extends RuntimeException {

    private static final String GLOBAL_EXCEPTION_MSG = "System error occured";

    public SystemException(String message) {
        super(String.format("%s. %s",GLOBAL_EXCEPTION_MSG,message));
    }

    public SystemException(String message, Throwable cause) {
        super(String.format("%s. %s",GLOBAL_EXCEPTION_MSG,message), cause);
    }

    public SystemException(Throwable cause) {
        super(cause);
    }

}
